package com.castle.fortress.admin.member.entity;

import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import java.util.Date;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
/**
 * 会员评论表 实体类
 *
 * @author castle
 * @since 2023-02-20
 */
@Data
@TableName("member_comment")
public class MemberCommentEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	/**
	 * id
	*/
	@JsonSerialize(using = ToStringSerializer.class)
	@TableId(
			value = "id",
			type = IdType.ASSIGN_ID
	)
	private Long id;
	/**
	 * 00 课程
	*/
	private String commentType;
	/**
	 * 会员ID
	*/
	@JsonSerialize(using = ToStringSerializer.class)
	private Long memberId;
	/**
	 * 是否匿名
	*/
	private Integer isAnonymity;
	/**
	 * 评论主体
	*/
	@JsonSerialize(using = ToStringSerializer.class)
	private Long targetId;
	/**
	 * 评论的上级
	*/
	@JsonSerialize(using = ToStringSerializer.class)
    	@TableField(updateStrategy = FieldStrategy.IGNORED)
	private Long parentId;
	/**
	 * 所有评论主体
	*/
    	@TableField(updateStrategy = FieldStrategy.IGNORED)
	private String parents;
	/**
	 * 评论内容
	*/
	private String content;
	/**
	 * 评论时间
	*/
	private Date commentTime;
	/**
	 * 点赞数
	*/
	private Integer thumbsUpNum;
	/**
	 * 昵称
	 */
	@TableField(exist = false)
	private String nickName;
	/**
	 * 头像
	 */
	@TableField(exist = false)
	private String avatar;
	/**
	 * 默认是正序： 00 倒序
	 */
	@TableField(exist = false)
	private String sortFlag;
}
